<form name="frmsearch" id="frmsearch" action="<?php echo base_url()?>user/results_user" method="post">
  <table class="frmsearch" width="100%" cellspacing="5px" style="background: #ffefdd; color:#000; margin:0px 0px 10px; padding:10px;">            
                <tbody>
                    <tr>
                    	<td width="150">&nbsp; </td>
                        <td style="padding:5px"><label class="lb">Điện thoại:</label><input type="text"  name="lb_phone" id="lb_phone" value=""></td>
                         <td style="padding:5px"><label class="lb">Email:</label><input type="text" name="email" id="email" value=""></td>     
                        <td style="padding:5px"><input type="submit" id="ordersearch" name="ordersearch" value="Tìm khách hàng">
               			</td>
                        <td width="100">&nbsp; </td>                
                    </tr>  
                </tbody>
            </table>
 </form>
<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('user/dels', $attributes);
?>

<table class="admindata">
   <thead>
      <tr>
         <th colspan="8"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?php echo lang('delete');?>">
            <?php echo lang('total');?> <?php echo $num?>  <?php echo lang('record');?><span class="pages"> <?php echo $pagination?> </span> 
         </th>
      </tr>
      <tr>
         <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
         <th width="70">Avatar</th>
         <th><?php echo lang('full_name')?></th>
         <th>Điện thoại</th>
         <th><?php echo lang('email');?></th>
         <th>Địa chỉ</th>
         <th><?php echo lang('dt_join');?></th>
         
         <th class="publish"><?php echo lang('functions');?></th>
      </tr>
   </thead>
   <?
        $k=1;
        $i=1;
        foreach($list as $rs):
        ?>
   <tr class="row<?php echo $k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?php echo $rs->member_id?>"></td>
        <td>  
            <?php if(!empty($rs->lb_image)){?>
                <img src="<?php echo base_url_site()?>uploads/avatar/135/<?php echo $rs->lb_image?>" width ="35" height="35" alt="">
            <?php } ?>
        </td>
        <td><?php echo $rs->lb_full_name;?></td>
        <td><?php echo $rs->lb_phone;?></td>
        <td><?php echo $rs->lb_email;?></td>
        <td><?php echo $rs->lb_address;?></td>
        <td><?php echo date_mysql2vn($rs->dt_create);?></td>
        
        <td align="center">
            <?php echo icon_edit('user/edit/'.$rs->member_id)?>
            <span id="publish<?php echo $rs->member_id?>">
            <?php echo icon_active("'member'","'member_id'",$rs->member_id,$rs->bl_active)?>
            </span>
            <?php echo icon_del('user/del/'.$rs->member_id.'/'.(int)$this->uri->segment(4))?>
        </td>
   </tr>
   <?
        $k=1-$k;
        $i++;
        endforeach;?>
   <tfoot>
   <td colspan="8"><input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?php echo lang('delete');?>">
         <?php echo lang('total');?> <?php echo $num?>  <?php echo lang('record');?><span class="pages"> <?php echo $pagination?> </span> 
		 </td>
         </tfoot>
</table>
<?php echo form_close()?>